package net.togogo.egouweb1238.core.service.product;

import java.util.List;

import net.togogo.egouweb1238.common.page.Pagination;
import net.togogo.egouweb1238.core.domain.product.Feature;
import net.togogo.egouweb1238.core.query.product.FeatureQuery;


/**
 * 
 * @author stone
 */
public interface IFeatureService {
	/**
	 * 基本插入
	 * 
	 * @return
	 */
	public Integer addFeature(Feature feature);

	/**
	 * 根据主键查询
	 */
	public Feature getFeatureById(Integer id);

	/**
	 * 根据主键批量查询
	 */
	public List<Feature> getFeaturesByIds(List<Integer> idList);

	/**
	 * 根据主键删除
	 * 
	 * @return
	 */
	public Integer deleteById(Integer id);

	/**
	 * 根据主键批量删除
	 * 
	 * @return
	 */
	public Integer deleteByIds(List<Integer> idList);

	/**
	 * 根据主键更新
	 * 
	 * @return
	 */
	public Integer updateFeatureById(Feature feature);

	/**
	 * 根据条件查询分页查询
	 * 
	 * @param featureQuery
	 *            查询条件
	 * @return
	 */
	public Pagination getFeatureListWithPage(FeatureQuery featureQuery);

	/**
	 * 根据条件查询
	 * 
	 * @param featureQuery
	 *            查询条件
	 * @return
	 */
	public List<Feature> getFeatureList(FeatureQuery featureQuery);
}
